<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/5/25
  Time: 12:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>insertAir</title>
</head>
<body>
    <form action="../test/insert">
        <table>
            <th>添加空气质量信息</th>
            <tr>
                <select name="type">
                    <c:forEach var="d" items="${directList}">
                        <option value="${d.id}">${d.name}</option>
                    </c:forEach>
                </select>
            </tr>
            <tr>监测日期:<input name="date" type="text" /></tr>
            <tr>PM10值: <input name="PM1" type="text" /> </tr>
            <tr>PM2.5值: <input name="PM2" type="text"/> </tr>
            <tr>监测站: <input name="station" type="text" /></tr>
        </table>
        <input type="submit" value="保存"/>
        <input type="reset" value="重置" />
        <input type="button" href="/test/findAll" value="返回"/>
    </form>
</body>
</html>
